#为了防止被禁用本地ip
from selenium import webdriver
import time
from lxml import etree
from selenium.webdriver.common.by import  By
driver_path=r"F:\demos\chromedriver_win32\chromedriver.exe"

options=webdriver.ChromeOptions()
options.add_argument("--proxy-server=http://121.232.148.51:9000")
#传递路径，和option
driver=webdriver.Chrome(executable_path=driver_path,chrome_options=options)
driver.get('http://httpbin.org/ip')